package com.wlc.web.controller;

import com.wlc.business.Do.StockInfoDo;
import com.wlc.business.service.StockInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 王立朝
 * @date 2021/2/19
 * @description:
 */
@RestController
@RequestMapping("/stock")
public class TestController {

    @Autowired
    private StockInfoService stockInfoService;
    @GetMapping("/getStockInfo")
    @ResponseBody
    public List<StockInfoDo> getStockInfo(){
        return stockInfoService.getStock();
    }
}
